# val = 1 / 0 # throw ZeroDivisionError 
# print("val=", val)

import logging

try:
	
	y = 10
	val = y / int("a")
	print("val=", val)
except ZeroDivisionError as e:
	print("ex:", e)
except ValueError as e:
	pass
	# print("value error:",e)
	logging.exception(e)
finally:
	print("finally")

